import request from '@/utils/request';
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

/**
 * 修改密码
 * @param {*} data 
 */
export function updatePassword(data) {
  return request({
    url: '/sysUser/updatePassword',
    method: 'post',
    data
  })
}

/**
 * 重置密码
 * @param {*} data 
 */
export function restPassword(data) {
  return request.get('/sysUser/resetPassword', {
    params: data
  })
}